import { Component, ElementRef, OnInit, ViewChild } from '@angular/core';

@Component({
  selector: 'app-demo10',
  templateUrl: './demo10.component.html',
  styles: []
})
export class Demo10Component implements OnInit {
  @ViewChild('origin', { static: true, read: ElementRef }) origin: ElementRef;

  originEle: Element;

  constructor() {}

  ngOnInit() {
    this.originEle = this.origin.nativeElement;
  }
}
